﻿namespace Gonte.Networking.Servers
{
    /// <summary>
    /// Implementation of an echo server
    /// </summary>
    public class TcpEchoServer
        : TcpServer
    {
        /// <summary>
        /// Echoes back the request to the client
        /// </summary>
        /// <param name="readerWriter"></param>
        /// <param name="request"></param>
        /// <param name="hasMoreData"></param>
        public override void HandleRequest(NetworkStreamReaderWriter readerWriter, string request, bool hasMoreData)
        {
            readerWriter.Write(request);
        }
    }
}
